package com.lys.emsystem.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.emsystem.entity.Job;
import com.lys.emsystem.mapper.JobMapper;
import com.lys.emsystem.service.IJobService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lys.emsystem.vo.JobVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liyansheng
 * @since 2022-04-30
 */
@Service
public class JobServiceImpl extends ServiceImpl<JobMapper, Job> implements IJobService {

    @Autowired
    private JobMapper jobMapper;

    @Override
    public IPage<Job> search(Page<Object> objectPage, JobVo jobVo) {
        return jobMapper.search(objectPage, jobVo);
    }

    @Override
    public List<Job> find(Job job) {
        return jobMapper.find(job);
    }
}
